const { createProxyMiddleware } = require('http-proxy-middleware');
// 设置后端反向代理
module.exports = function (app) {
  app.use('/api', createProxyMiddleware({
    target: 'http://www.ibugthree.com/oldcar/',      //后端接口地址
    changeOrigin: true,
    pathRewrite: {
      '^/api': '',
    },}))
}